home *** CD-ROM | disk | FTP | other *** search
/ Champak 83 / (Vol 83) My Disc.iso / Games / bee_game.swf / scripts / DefineSprite_96 / frame_149 / DoAction.as
Text File  |  2008-08-07  |  2KB  |  84 lines

  1. tekan = false;
  2. start_but._xscale = start_but._yscale = instruct_but._xscale = instruct_but._yscale = addgame_but._xscale = addgame_but._yscale = playmore_but._xscale = playmore_but._yscale = 140;
  3. start_but.onRollOver = function()
  4. {
  5.    start_but._xscale = 165;
  6.    start_but._yscale = 165;
  7. };
  8. start_but.onRollOut = function()
  9. {
  10.    start_but._xscale = 140;
  11.    start_but._yscale = 140;
  12. };
  13. instruct_but.onRollOver = function()
  14. {
  15.    instruct_but._xscale = 165;
  16.    instruct_but._yscale = 165;
  17. };
  18. instruct_but.onRollOut = function()
  19. {
  20.    instruct_but._xscale = 140;
  21.    instruct_but._yscale = 140;
  22. };
  23. playmore_but.onRollOver = function()
  24. {
  25.    playmore_but._xscale = 165;
  26.    playmore_but._yscale = 165;
  27. };
  28. playmore_but.onRollOut = function()
  29. {
  30.    playmore_but._xscale = 140;
  31.    playmore_but._yscale = 140;
  32. };
  33. addgame_but.onRollOver = function()
  34. {
  35.    addgame_but._xscale = 165;
  36.    addgame_but._yscale = 165;
  37. };
  38. addgame_but.onRollOut = function()
  39. {
  40.    addgame_but._xscale = 140;
  41.    addgame_but._yscale = 140;
  42. };
  43. start_but.onRelease = function()
  44. {
  45.    if(!tekan)
  46.    {
  47.       _root.suara_beep.start(0,1);
  48.       tekan = true;
  49.       var _loc3_ = _root.createEmptyMovieClip("empty",1);
  50.       _loc3_.beginFill(0,100);
  51.       _loc3_.lineStyle(5,0,100);
  52.       _loc3_.moveTo(0,0);
  53.       _loc3_.lineTo(Stage.width,0);
  54.       _loc3_.lineTo(Stage.width,Stage.height);
  55.       _loc3_.lineTo(0,Stage.height);
  56.       _loc3_.lineTo(0,0);
  57.       _loc3_.endFill();
  58.       _loc3_._alpha = 0;
  59.       _loc3_._delay = 25;
  60.       _loc3_.onEnterFrame = function()
  61.       {
  62.          this._delay = this._delay - 1;
  63.          this._alpha = 100 - this._delay * 4;
  64.          if(this._delay <= 0)
  65.          {
  66.             _root.gotoAndStop("level1");
  67.             this.removeMovieClip();
  68.          }
  69.       };
  70.    }
  71. };
  72. instruct_but.onRelease = function()
  73. {
  74.    _root.gotoAndStop("instruction");
  75. };
  76. addgame_but.onRelease = function()
  77. {
  78.    getUrl("http://www.dailyfreegames.com/free-games.html", "_blank");
  79. };
  80. playmore_but.onRelease = function()
  81. {
  82.    getUrl("http://www.dailyfreegames.com", "_blank");
  83. };
  84.